package com.dm.cloud.auth.mapper;

import com.dm.cloud.tkmybatis.service.BaseMapper;
import com.dm.cloud.auth.common.po.AuthApp;
import org.apache.ibatis.annotations.*;

import java.util.List;

/**
   * @author hcx
   * @type AuthAppMapper.java
   * @desc AuthApp mapper
   */

@Mapper
public interface AuthAppMapper extends BaseMapper<AuthApp> {

    @Select("select * from T_AUTH_APP where app_code=#{appCode}")
    AuthApp findByAppCode(@Param("appCode") String appCode);
    @Select("select app_code appCode,name from T_AUTH_APP")
    List<AuthApp> findAllCodeAndName();
}
